package com.example.springboot.service;

import com.example.springboot.entity.EthnicPopulation;
import com.example.springboot.mapper.EthnicPopulationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 功能：
 * 作者：陈雷
 * 日期：2024/11/14 16:23
 */
@Service
public class EthnicPopulationService {

    @Autowired
    private EthnicPopulationMapper ethnicPopulationMapper;
    // 查询2022年数据
    public List<EthnicPopulation> selectByEthnic2022() {
        return ethnicPopulationMapper.selectByEthnic2022();

    }


    // 查询所有数据
    public List<EthnicPopulation> selectByEthnicAll() {
        return ethnicPopulationMapper.selectByEthnicAll();
    }
}